package operationSolids;

import bReps.CreateCylinderBrep;

public class OperationCylinder extends CSGSolid
{
	private String name ="";
	private float depth =0;
	private float radius = 0;
	
	public OperationCylinder(String name, float radius, float depth)
	{
		super();
		this.name = name;
		this.depth = depth;
		this.radius = radius;
		
		CreateCylinderBrep cyl = new CreateCylinderBrep(name, radius, depth);
		this.vertices = cyl.vertexArray;
		this.indices = cyl.indexArray;
		this.colors = cyl.color3f;
		this.scale(5, 5, 5);
	}

	public CSGSolid copy() 
	{
		OperationCylinder cylinder = new OperationCylinder(name, radius, depth);
		cylinder.updateLocation(getLocation());
		return cylinder;
	}
}
